package com.demo.client;

import org.jivesoftware.smack.packet.IQ;

import android.util.Log;

public class NotificationIQ extends IQ {

	private static final String TAG = LogUtil.getClassName(NotificationIQ.class);
	
	private String id = null;
	private String apiKey = null;
	private String title = null;
	private String message = null;
	private String uri = null;
	
	public static String getTag() {
		return TAG;
	}
	@Override
	public String getChildElementXML() {
		StringBuilder builder = new StringBuilder();
		builder.append("<").append("notification").append(" xmlns=\"")
				.append("androidpn:iq:notification").append("\">");
		if(id!=null)
			builder.append("<id>"+id+"</id>");
		builder.append("</notification>");
		
		Log.d(TAG, builder.toString());
		
		return builder.toString();
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public String getUri() {
		return uri;
	}
	
	public void setUri(String uri) {
		this.uri = uri;
	}
}
